#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_int_equal() {
        let num1 = 10;
        let num2 = 10;
        let num3 = 20;

        let ptr1 = &num1 as *const i32;
        let ptr2 = &num2 as *const i32;
        let ptr3 = &num3 as *const i32;

        assert_eq!(int_equal(ptr1, ptr2), 1);
        assert_eq!(int_equal(ptr1, ptr3), 0);
    }

    #[test]
    fn test_int_compare() {
        let num1 = 10;
        let num2 = 20;
        let num3 = 10;
        let num4 = 15;

        let ptr1 = &num1 as *const i32;
        let ptr2 = &num2 as *const i32;
        let ptr3 = &num3 as *const i32;
        let ptr4 = &num4 as *const i32;

        assert_eq!(int_compare(ptr1, ptr2), -1);
        assert_eq!(int_compare(ptr2, ptr1), 1);
        assert_eq!(int_compare(ptr1, ptr3), 0);
        assert_eq!(int_compare(ptr1, ptr4), -1);
    }
}